import { connect } from 'dva';
import React, { useEffect, useState } from 'react';
import Content from '../components/content';
import Footer from '../components/footer';
import Header from '../components/header';
import styles from './index.less';


const home = props => {
  const { form, dispatch } = props;
  useEffect(() => {
    // localStorage.setItem('deptId',props?.location?.query?.deptId || '')
    dispatch({
      type:'Public/getAppSetDetail',
      payload:{}
    })
    dispatch({
      type: 'Public/getCategoryList',
      payload: {}
    })
  }, [])

  return (
    <div className={styles.page}>
      <Header {...props} />
      <Content {...props}/>
      <Footer {...props}/>
    </div>
  );
};

export default connect(({ }) => ({}))(home);
